<!DOCTYPE html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>商品列表</title>
    <meta name="description" content="后台管理">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="__CSS__/amazeui.min.css"/>
    <link rel="stylesheet" href="__CSS__/admin.css">
    <link rel="stylesheet" href="__P_JS__/layer/need/layer.css">
    <script src="__JS__/jquery.min.js"></script>
    <script src="__JS__/app.js"></script>
    <script src="__P_JS__/layer/layer.js"></script>
</head>

<body>
{include file="common/header" /}
<div class="am-cf admin-main">
    {include file="common/menu" /}
    <div class=" admin-content">

        <div class="daohang">

        </div>


        <div class="admin-biaogelist">

            <div class="listbiaoti am-cf">
                <ul class="am-icon-flag on"> 栏目名称</ul>

                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">用户权限修改</a></dl>

                <dl>
                    <!--<a href="{:url('add_admin')}" type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus"> 添加管理用户</a>-->
                </dl>


            </div>

        <form class="am-form am-g" method="post">

            <h4><label>用户名：{$user.username}</label></h4>
            <!--<p><label>超级管理员(拥有全部权限)：</label>-->
                <!--<label><input type="radio" name="super" value="0" {$user['super']==0 ? 'checked="checked"':''} >否</label>-->
                <!--<label><input type="radio" value="1" name="super" {$user['super'] ? 'checked="checked"':''} >是</label>-->
            <!--</p>-->
            <div class="auth-list">
                {volist name='auth' id='v' key='k'}
                {if $v.key}
                {$v['isSon'] ? '<span>':'<p>'}
                <label><input type="checkbox" name="auth[]" value="{$v.key}" {if in_array($v['key'], $haveAuth)}checked="checked"{/if}>{$v.name}</label>
                {$v['isSon'] ? '</span>':'</p>'}
                {/if}
                {/volist}
            </div>

            <button type="submit" class="am-btn am-btn-success am-radius">提交修改</button>
        </form>
            {include file="common/footer" /}
        </div>

    </div>
</body>
<script>
    $(document).on('click', '.qr-img',function(){
        var img = $('div',$(this)).html();
        if(img){
            layer.open({
                type: 1,
                //skin: 'layui-layer-demo', //样式类名
                closeBtn: 0, //不显示关闭按钮
                anim: 2,
                shadeClose: true, //开启遮罩关闭
                content: img
            });
        }

    });
</script>
</html>